package sinoservices.demo.mapper;


import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import sinoservices.demo.entity.CustomerInfo;

import java.util.List;

@Repository
public interface CustomerInfoMapper {
    /**
     * 新增客户
     * @return
     */
    int saveCustomer (CustomerInfo customerInfo);
    /**
     * 根据id客户
     * @return
     */
    int deleteCustomerById (int id);
    /**
     * 更新客户信息
     * @return
     */
    int updateCustomer (CustomerInfo customerInfo);
    /**
     * 根据id查询客户信息
     * @return
     */
    CustomerInfo getCustomerInfo(int id);
    /**
     * 查询所有客户信息
     * @return
     */
    List<CustomerInfo> selectAllCustomer ();

    Integer queryMinSum(@Param("i") int i,@Param("j") int j);
}
